/<template>
  <div class="address">
    <div class="body">
      <ul>
        <li v-for="item in list" :key="item.id">
          <div>
            <span>{{item.name}}</span>
            <span>{{item.tel}}</span>
          </div>
          <div>
            <span>{{item.province}}</span>
            <span>{{item.city}}</span>
            <span>{{item.county}}</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  data(){
    return{
      list:[]
    }
  },
  mounted(){
    axios.get('/gerAddress').then(res=>{
      console.log(res.data);
      this.list=res.data
    })
  }
}
</script>

<style>

</style>